package mysql

import "gorm.io/gorm"

type Comment struct {
	gorm.Model
	UserId   int64  `gorm:"type:int(11)" json:"UserId,omitempty"`
	HouseId  int64  `gorm:"type:int(11)" json:"HouseId,omitempty"`
	Comments string `gorm:"type:varchar(50)" json:"Comments,omitempty"`
}

func (c *Comment) Create() error {
	return DB.Create(&c).Error
}
